package com.codegeek.project.slope.domain;

import com.codegeek.common.utils.ReplaceIllegalChar;
import lombok.Data;

/**
 *
 * @author
 */
@Data
public class SlopeAddCamera {

    private Long cameraId;

    private String deviceName;

    private String number;

    private String validateCode;

    private String accessToken;

    private Long nvrId;

    private Long channel;

    private Integer cameraType;

    private Long supplierId;

    private Integer pointId;

    private String description;

    public void setDeviceName(String deviceName) {
        this.deviceName = new ReplaceIllegalChar().replace(deviceName);
    }

    public void setNumber(String number) {
        this.number = new ReplaceIllegalChar().replace(number);
    }

    public void setValidateCode(String validateCode) {
        this.validateCode = new ReplaceIllegalChar().replace(validateCode);
    }

    private void setAccessToken(String accessToken) {
        this.accessToken = new ReplaceIllegalChar().replace(accessToken);
    }

    public void setDescription(String description) {
        this.description = new ReplaceIllegalChar().replace(description);
    }
}

